package ltd.flyweight.liquibasehelper.core.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("information_schema.columns")
public class PgColumnsEntity {

    @TableField("table_catalog")
    private String tableCatalog;

    @TableField("table_schema")
    private String tableSchema;

    @TableField("table_name")
    private String tableName;

    @TableField("column_name")
    private String columnName;

    @TableField("ordinal_position")
    private String ordinalPosition;

    @TableField("column_default")
    private String columnDefault;

    @TableField("is_nullable")
    private String isNullable;

    @TableField("data_type")
    private String dataType;

    @TableField("character_maximum_length")
    private Integer characterMaximumLength;

    @TableField("character_octet_length")
    private Integer characterOctetLength;

    @TableField("numeric_precision")
    private Integer numericPrecision;

    @TableField("numeric_precision_radix")
    private Integer numericPrecisionRadix;

    @TableField("numeric_scale")
    private Integer numericScale;

    @TableField("datetime_precision")
    private Integer datetimePrecision;
}
